package com.decent.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 闲鱼商品问卷问题
 *
 * @author wangyx
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ProductQuestion implements Serializable {
    private static final long serialVersionUID = 3029017517614103340L;
    /**
     * 自增ID
     */
    private Long id;
    /**
     * 问题名称
     */
    @Length(max = 8, message = "估价名称最长为50个字")
    @Length(min = 1, message = "估价名称最少为1个字")
    private String name;

    /**
     * 提示信息
     */
    private ProductAnswer.Tip tips;
    /**
     * 是否必填
     */
    private Boolean required;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    private LocalDateTime updateTime;
    /**
     * 创建人
     */
    private String createNo;
    /**
     * 修改人
     */
    private String updateNo;
}
